package com.tanhua.management.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;

public enum TopEnum implements IEnum<Integer> {
    //置顶状态，1为未置顶，2为置顶
    NO_TOP(1,"未置顶"),
    TOP(2,"置顶");

    private int value;
    private String desc;

    TopEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    @Override
    public String toString() {
        return this.desc;
    }
}
